<div class="forms">
  <textarea name="supp" cols="" rows="" class="ftextarea focus font14" placeholder="请在这里输入内容"></textarea>
  <input type="hidden" name="qid" value="{$_GET['qid']}">
</div>
<script>
    $('.J_confirm').click(function (e) {
        var content = $.trim($("textarea[name='supp']").val());
        var qid = $("input[name='qid']").val();

        var btn=$(this);
        if (btn.hasClass('disabled')) {
            return false;
        }
        btn.addClass('disabled');

        if (!content) {
            toast('内容不能为空');
            btn.removeClass('disabled');
            return false;
        }

        var params = {content:content,qid:qid};
        var question_reply_url = '{:U("Question/ajax_question_supp_save")}';
        $.post(question_reply_url, params, function(res){
            if (res.code == 0) {
                toast(res.msg);
                btn.removeClass('disabled');
                return false;
            } else {
                // 成功补充提问
                toast(res.msg, 1);
                $(".uu_forms_bg,.uu_forms").remove();
                un_lock_touchmove();
                location.reload();
            }
        });
    });
</script>